﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/themes/base/css", "~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
    @RenderSection("scripts", required: false)

    @if (ViewBag.LoadTinyMce != null && ViewBag.LoadTinyMce)
    {
        @Html.Partial("LoadTinyMce")
    }
</head>
<body>
    <div class="page">
    
        <div id="header">
            <div id="headercontent">
            <div id="title">
                <h1>Dev-Frame</h1>
            </div>

            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>

            <div id="menucontainer">

                <ul id="menu">
                    <li>@Html.ActionLink(Resource.Home, "Index", "Home") |</li>
                    <li>@Html.ActionLink(Resource.About, "About", "Home") |</li>
                    <li>@Html.ActionLink(Resource.Weblog, "Index", "Post")</li>                    
                    @if (Xoqal.Security.Authentication.Default.IsUserInPermission(Kaqaz.Common.Security.Permissions.CommentManagement))
                    {
                        @* If there is any online user then we show the change password menu *@
                        <li> | @Html.ActionLink(Resource.UnapprovedComments, "Unapproved", "Comment")</li>
                    }
                    @if (Xoqal.Security.Authentication.Default.GetCurrentUser() != null)
                    {
                        @* If there is any online user then we show the change password menu *@
                        <li> | @Html.ActionLink(Resource.ChangePassword, "ChangePassword", "Account")</li>
                    }
                </ul>

            </div>
            </div>
        </div>

        <div id="main">
            <div id="content">
                @RenderBody()
                @*<div class="sidebar">
                    <div class="side-widget">
                        <h2>لینک‌ها</h2>
                        <div>
                           Google<br />
                           Yahoo<br />
                        </div>
                    </div>
                    <div class="side-widget">
                        <h2>لینک‌ها2</h2>
                        <div>
                           Google<br />
                           Yahoo<br />
                        </div>
                    </div>
                </div>*@
            </div>

            <div id="footer">
                لطفاً مطالب موجود در <a href="http://www.dev-frame.com">www.dev-frame.com</a> را با ذکر منبع منتشر کنید
                <br />
                <span dir="ltr">Copyright 2012 &copy; Amir Karimi</span>
            </div>
        </div>
    </div>
</body>
</html>
